package cn.luischen.dto.cond;


import static org.junit.Assert.*;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import org.junit.Rule;
import org.junit.runner.RunWith;
import org.junit.rules.ExpectedException;
import org.junit.Test;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.reflect.Whitebox;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.Mockito;
import org.mockito.MockitoAnnotations;
import org.mockito.stubbing.Answer;
import java.lang.reflect.Method;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.TypeReference;
import com.alibaba.fastjson.parser.ParserConfig;
import java.util.Map;
import java.util.List;
import com.unitspirit.runtime.*;
/**
 * The class contains tests for the class cn.luischen.dto.cond.MetaCond.
*
* @generatedBy UnitSpirit CreateTemplateTestFile4
* @version 1.0.9.11 
*/
@PowerMockIgnore({"javax.management.*"})
public class MetaCond_setType_WGTest {
  @Rule  
  public ExpectedException unitspirit_thrown= ExpectedException.none();
  /**
  * 测试方法初始化.
  * 
  * @throws Exception 
  *         if the initialization fails for some reason 
  *  
  * @generatedBy UnitSpirit at 2021-12-08 11:01:29
  */  
 @org.junit.Before 
  public void setUp()  throws Exception 
  { 
    try{
    GlobalUnitInit.init(); 
    MockitoAnnotations.initMocks(this);
   ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
}catch(Exception ex){
  ex.printStackTrace();
}
  }



  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1001_002812_810_1_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "category";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"name","默认分类");
    Whitebox.setInternalState(unitspirit_fixture,"type","category");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1001_002812_810_2_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "tag";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"name","国庆测试1");
    Whitebox.setInternalState(unitspirit_fixture,"type","tag");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1001_002839_538_1_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "category";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"name","国庆测试2");
    Whitebox.setInternalState(unitspirit_fixture,"type","category");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1207_113840_796_1_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "category";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"type","category");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1207_113850_557_1_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "category";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"name","默认分类");
    Whitebox.setInternalState(unitspirit_fixture,"type","category");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1207_113850_557_2_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "tag";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"name","123");
    Whitebox.setInternalState(unitspirit_fixture,"type","tag");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1207_114045_619_1_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "category";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"name","123");
    Whitebox.setInternalState(unitspirit_fixture,"type","category");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
  /**
  * @date 2021-12-08 11:01:30
  * @see cn.luischen.dto.cond.MetaCond#setType
  * @category auto generate by UnitSpirit  
  * @author UnitSpirit   
  */
  @Test
  public void test_setType_1207_114110_466_1_00() throws Throwable {
    
cn.luischen.dto.cond.MetaCond unitspirit_fixture=new  cn.luischen.dto.cond.MetaCond();
    String String_p_0 = "link";
  //成员变量设置
    Whitebox.setInternalState(unitspirit_fixture,"type","link");


    //返回值定义 
    //该函数无返回值 



      unitspirit_fixture.setType(String_p_0);
    assertTrue(true);
  }
}